<#include "/common/common.ftl" encoding="UTF-8">
<link href="${staticUrl}/css/form.css" type="text/css" rel="stylesheet" />
<link href="${staticUrl}/js/validate/jquery.validate.css" type="text/css" rel="stylesheet" />
<script src="${staticUrl}/js/validate/jquery.validate.js" type="text/javascript"></script>
<script src="${staticUrl}/js/validate/messages_cn.js" type="text/javascript"></script>
<#assign action="sys-config">
<script>
	$(document).ready(function(){
		//为inputForm注册validate函数
		$("#inputForm").validate();
	});
</script>
</head>
<body>
<div class="title"><#if id?exists>修改<#else>创建</#if>系统变量</div>
<div id="inputContent">
<form id="inputForm" action="${action}!save.action" method="post">
<input type="hidden" name="id" value="${(id)?if_exists}" />
<table class="content">
	<tr>
		<@ftlMacro.inputText name="name" descript="名称" textShow="${name?if_exists}" cssStyle="required"/>
	</tr>
	<tr>
		<@ftlMacro.inputText name="value" descript="value值" textShow="${value?if_exists}" cssStyle="required"/>
	</tr>
	<tr>
		<@ftlMacro.inputText name="keyName" descript="key值" textShow="${keyName?if_exists}" cssStyle="required"/>
	</tr>
	<tr>
		<@ftlMacro.inputText name="type" descript="类型" textShow="${type?if_exists}" cssStyle="required"/>
	</tr>
	<tr>
        <td class="textLabel"><div class='descript' >描述：</div>
        </td>
        <td class="textShow">
           <textarea name="description" class="textareaShow">${(description)?if_exists}
           </textarea>
        </td>
	</tr>
	<tr>
		<td class="textLabel">创建时间:</td>
		<td>${(createTime)?if_exists}</td>
	</tr>
	<tr class="button">
		<td colspan="2">
			<input type="submit" value="提交" />&nbsp; 
			<input type="button" value="取消" onclick="history.back()"/>
		</td>
	</tr>
	<tr>
		<td colspan="2">
		</td>
	</tr>
</table>
</form>
</div>
</body>
</html>